package com.usian.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;
@TableName(value = "user")
@Data
public class User {

    @TableId(value = "userId",type = IdType.AUTO)
    private Integer userId;


    @TableField(value = "userName")
    private String userName;


    @TableField(value = "password")
    private String password;


    @TableField(value = "userDescription")
    private String userDescription;


    @TableField(value = "inputDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputDate;


    @TableField(value = "input_date_str")
    private String  inputDateStr;


    @TableField(value = "role_id")
    private Integer roleId;

    @TableField(value = "user_type")
    private Integer userType;
}
